import Read from "../../../assets/chatCard/10.webp";
import Closed from "../../../assets/chatCard/8.webp";
import linkIcon from "../../../assets/chatCard/12.webp";
import upload from "../../../assets/chatCard/11.webp";
import Link from "../../../assets/sendChat/1.png";
import { AnyObject } from "antd/es/_util/type";
import AIHeader from "./header";
import AIInput from "./AIInput";
// AI阅读
const AIReading = ({ resetIndex }: AnyObject) => {
  return (
    <div className="rounded-2xl bg-z-black border-gray-black border overflow-hidden relative items-center">
      <AIHeader
        resetIndex={resetIndex}
        img={Read}
        Closed={Closed}
        title="AI阅读"
      />
      <div className="py-4 px-3.5">
        <div className="border-dashed border h-52 border-gray-black mb-4 rounded-xl py-5 flex flex-col items-center">
          <img src={upload} className="w-8 h-8 block" alt="" />
          <div className="text-sm font-bold text-white mt-2">
            在此处拖放文件
          </div>
          <div className="text-xs text-gray-black text-center mt-1.5 gap-y-1">
            <div>文件大小: 不超过 100 MB 文件数量: 最多 50 个</div>
            <div>图片大小: 不超过 20 MB 图片数量: 最多 10 个</div>
            <div>
              支持文件类型: pdf, txt, csv, docx, doc, xlsx, xls, pptx, ppt, md,
              mobi, epub, png,jpeg,jpg
            </div>
          </div>
          <div className="flex gap-2 mt-4">
            <div className="p-2 border border-gray-black rounded-lg flex flex-row items-center gay">
              <img src={Link} className="w-4 h-4 block mr-1" alt="" />
              <div className="text-xs text-white">浏览文件</div>
            </div>
            <div className="p-2 border border-gray-black rounded-lg flex flex-row items-center gay">
              <img src={linkIcon} className="w-4 h-4 block mr-1" alt="" />
              <div className="text-xs text-white">文件链接</div>
            </div>
          </div>
        </div>
        <AIInput placeholder="询问关于这篇文章的所有问题" size={true} />
      </div>
    </div>
  );
};
export default AIReading;
